#ifndef WORLDSIMULATOR_H
#define WORLDSIMULATOR_H

#include <Box2D/Box2D.h>
#include <vector>

class BodyWrapper;
class WorldSimulator
{
public:
    WorldSimulator();
    void step();
    b2World *getB2World() {return world;}
    std::vector<BodyWrapper*> &getObjects() {return objects;}
    void addObject(BodyWrapper *object) {
        objects.push_back(object);
    }

private:
    b2World *world;
    std::vector<BodyWrapper*> objects;
    static WorldSimulator *ins;
};

#endif // WORLDSIMULATOR_H
